<template>
    <div>
        home
        <router-view/>
    </div>
    </template>


<script>
import { onUnmounted} from 'vue';
import { useRoute } from 'vue-router';

export default {
    setup() {
        const route = useRoute();
        console.log(route.params.id);
        onUnmounted(() => {
            console.log('home unmounted');
        });
    }
}
</script>